/*
 Free Graphics Engine 
 0.0.1a
 dev.hddisseny
 100510
 Framework completo de la libreria SDL para usar en VC Express 8.
		   Creado por dev.hddisseny - dev.hddisseny@gmail.com 
*/
#include <iostream>
#include "FGElib.h"

FGE_Motion DemoFGE;
FGE_Media  DemoIMG;
bool loop;

int main(int argc, char *argv[])
{
	DemoFGE.Init("DemoFGE");
	DemoFGE.Window(1024, 768, 16);
	if ( ( DemoIMG.LoadImg ( "1.bmp" ) ) != 0 ) { exit(1); }
	DemoIMG.SetColorKey ( 255, 0 , 255 );

	while(!loop) 
	{
		DemoIMG.DrawImage ( 1024 / 2, 768 / 2, DemoFGE.Surface() );
		DemoFGE.Refresh();

		switch ( DemoFGE.Mouse())
		{
			case FGE_MOUSE_LEFT:
			break;
		}

		switch ( DemoFGE.Keyboard() )
		{
			case FGE_ESC:
			exit(0);
			break;
		}
	}
	return 0;
}